package com.xinlijiankang.web.service;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xinlijiankang.web.dao.OperateDao;


@Service("operateService")
public class OperateServiceImpl implements OperateService{
	
	@Resource
	private OperateDao operateDao;
	
	@Override
	public <T> List<T> findAll(Class<T> t) {
		return operateDao.findAll(t);
	}

	@Override
	public <T> T findById(Class<T> t, Serializable id) {
		return operateDao.findById(t, id);
	}
	
	@Override
	public <T> T findByName(Class<T> t, String str,String qStr) {
		return operateDao.findByName(t, str, qStr);
	}

	@Override
	public <T> void saveOperate(T t) {
		operateDao.saveOperate(t);
		
	}

	@Override
	public <T> void updateOperate(T t) {
		operateDao.updateOperate(t);
		
	}

	@Override
	public <T> void deleteOperate(T t) {
		operateDao.deleteOperate(t);
		
	}

	@Override
	public <T> void deleteOperate(Class<T> t,Serializable id) {
		operateDao.deleteOperate(t,id);
		
	}
	
}
